package com.five.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.five.basic.query.BaseQuery;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu extends BaseQuery implements Serializable {
    private static final long serialVersionUID = 645154362982396622L;
    private Long id;
    private Long parentId;
    private Menu parent;
    private String name;
    private String url;
    private String icon;
    private Integer sort;
    private Integer status;
    private Date createTime;
    private Date updateTime;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();
}
